From: Michael Albinus Date: Sat, 10 May 2025 08:05:51 +0000 (+0200) Subject: Improve Tramp's make-process handling for Solaris X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~97 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1a2c29b5317357ba451fdd6f308675a1c6cbba2e;p=emacs.git Improve Tramp's make-process handling for Solaris * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Disable buffering also for remote Solaris hosts. Reported by Stacey Marshall . --- diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 9d74c2fd088..046eef791ac 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -3115,7 +3115,9 @@ will be used." (let ((pid (tramp-send-command-and-read v "echo $$"))) (setq p (tramp-get-connection-process v)) (process-put p 'remote-pid pid)) - (when (memq connection-type '(nil pipe)) + (when + (or (memq connection-type '(nil pipe)) + (tramp-check-remote-uname v tramp-sunos-unames)) ;; Disable carriage return to newline ;; translation. This does not work on ;; macOS, see Bug#50748. @@ -3131,6 +3133,9 @@ will be used." ;; should set a timeout ;; instead. See `tramp-pipe-stty-settings'. ;; (Bug#62093) + ;; On Solaris, the maximum line length + ;; depends also on MAX_CANON (256). So we + ;; disable buffering as well. ;; FIXME: Shall we rather use "stty raw"? (tramp-send-command v (format